package com.hoas.distributedlock.core;

/**
 * 分布式锁
 */
public interface DisributedLock {

    /**
     *
     * @param lockName
     * @param times
     * @return
     */
    boolean lock(ILockName lockName, int times);

    public boolean lock(ILockName lockName);

    public void release(ILockName lockName);

    public void release();

}
